package com.swust.book_shop.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 
 * @TableName order
 */
@TableName(value ="order")
@Data
public class Order implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单号
     */
    @TableField(value = "order_no")
    private Long orderNo;

    /**
     * 下单用户id
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 是否完成订单(默认未完成)
     */
    @TableField(value = "statue")
    private String statue;

    /**
     * 交付商品用户id
     */
    @TableField(value = "deliver_user_id")
    private Integer deliverUserId;

    /**
     * 购物车id
     */
    @TableField(value = "cart_id")
    private Integer cartId;

    /**
     * 订单总价
     */
    @TableField(value = "total_price")
    private BigDecimal totalPrice;

    /**
     * 用户订单状态(默认未确认)
     */
    @TableField(value = "user_statue")
    private String userStatue;

    /**
     * 商家用户订单状态(默认未确认)
     */
    @TableField(value = "deliver_user_statue")
    private String deliverUserStatue;

    /**
     * 订单生成时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 订单状态更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 订单完成时间
     */
    @TableField(value = "finish_time")
    private LocalDateTime finishTime;

    /**
     * 交易地址
     */
    @TableField(value = "transaction_address")
    private String transactionAddress;

    /**
     * 交易时间
     */
    @TableField(value = "transaction_time")
    private LocalDateTime transactionTime;

    /**
     * 
     */
    @TableField(value = "is_deleted")
    private String isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}